package com.smedi.ismedi.inmail.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 通知公告主表Entity类
 *
 * @author jiangqinxuan
 * @date 2021/07/26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "iml_announcement_basic")
public class AnnouncementBasicEntity extends BasicFieldEntity implements Serializable {
    /**
     * 通知公告标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 通知公告简介
     */
    @TableField(value = "content")
    private String content;

    /**
     * 通知公告发布人ID
     */
    @TableField(value = "publish_user_id")
    private Long publishUserId;

    /**
     * 通知公告发布人名称
     */
    @TableField(value = "publish_user_name")
    private String publishUserName;

    /**
     * 通知公告发布人单位名称
     */
    @TableField(value = "hr_organization_name")
    private String hrOrganizationName;

    /**
     * 通知公告是否有效
     */
    @TableField(value = "is_available")
    private Boolean available;

    /**
     * 通知公告是否内部可见
     */
    @TableField(value = "is_internal")
    private Boolean internal;
}